package com.DeliveryProgram.www.po;

public class Coupons {

    private int id;
    /**本类型折扣的剩余数量*/
    private  int mount;
    /**折扣力度*/
    private double discount;
    /**折扣的商家*/
    private String name;

    public String getName() {
        return name;
    }

    public Coupons(int id, double discount, String name) {
        this.id = id;
        this.discount = discount;
        this.name = name;
    }


    public Coupons(int id,int mount,double discount){
        this.id=id;
        this.mount=mount;
        this.discount=discount;
    }

    public Coupons(int mount,double discount){
        this.mount=mount;
        this.discount=discount;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getMount() {
        return mount;
    }

    public void setMount(int mount) {
        this.mount = mount;
    }

    public double getDiscount() {
        return discount;
    }

    public void setDiscount(double discount) {
        this.discount = discount;
    }

    public void getOut(){
        mount-=1;
    }

}
